package com.blog.backend.domain.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Auman
 * @time 2024/4/28 10:12
 */
@ApiModel("Blog传入参数类DTO")
@Data
public class BlogDTO {

    @ApiModelProperty(value = "博客标题", required = true)
    private String title;

    @ApiModelProperty(value = "操作状态", required = true)
    private Integer type;//0 不管，1回收，2删除

    @ApiModelProperty(value = "博客内容", required = true)
    private String content;

    @ApiModelProperty(value = "所属用户编号", required = false)
    private String belongCode;

    @ApiModelProperty(value = "本条编号", required = false)
    private String code;

    @ApiModelProperty(value = "博客作者", required = true)
    private String author;//nickname

    @ApiModelProperty(value = "博客分类", required = false)
    private String[] category;

    @ApiModelProperty(value = "博客标签，多个标签用逗号分隔", required = false)
    private String[] tags;

    @ApiModelProperty(value = "博客发布状态。0'draft', 1'published', 2'recycle', 3'deleted'   默认0已发布", required = false)
    private String status;

}
